// Copyright (C) 2018 Leo Balter. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.

// exports: default === 1612, local1 === 'one six one two', renamed === 'star', indirect === 'one six one two'

export var local1 = 'one six one two';
function Test() {
    var local2 = 'star';
export { local2 as renamed };
export { local1 as indirect } from './module-code-other_FIXTURE.js';
export default 1612;
}

// preheat
const NUMBER_OF_PREHEAT = 1;
for (let i = 0; i < NUMBER_OF_PREHEAT; i++) {
    Test();
}

ArkTools.jitCompileAsync(Test);
assert.sameValue(ArkTools.waitJitCompileFinish(Test), true, '[JIT] JIT disabled.');

// test
const NUMBER_OF_TEST = 1; // or 2
for (let i = 0; i < NUMBER_OF_PREHEAT; i++) {
    Test();
}
